active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
↳ QTRS
↳ DependencyPairsProof
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
ZERO(active(X)) → ZERO(X)
ADD(active(X1), X2) → ADD(X1, X2)
ACTIVE(prod(s(X), Y)) → ADD(Y, prod(X, Y))
MARK(p(X)) → ACTIVE(p(mark(X)))
ADD(X1, active(X2)) → ADD(X1, X2)
ADD(mark(X1), X2) → ADD(X1, X2)
ACTIVE(p(s(X))) → MARK(X)
MARK(fact(X)) → FACT(mark(X))
MARK(true) → ACTIVE(true)
MARK(if(X1, X2, X3)) → MARK(X1)
MARK(add(X1, X2)) → ACTIVE(add(mark(X1), mark(X2)))
FACT(active(X)) → FACT(X)
IF(X1, X2, mark(X3)) → IF(X1, X2, X3)
ACTIVE(prod(s(X), Y)) → PROD(X, Y)
MARK(p(X)) → MARK(X)
PROD(X1, active(X2)) → PROD(X1, X2)
MARK(fact(X)) → ACTIVE(fact(mark(X)))
MARK(zero(X)) → ZERO(mark(X))
MARK(add(X1, X2)) → ADD(mark(X1), mark(X2))
S(active(X)) → S(X)
MARK(false) → ACTIVE(false)
P(active(X)) → P(X)
ACTIVE(prod(s(X), Y)) → MARK(add(Y, prod(X, Y)))
ACTIVE(fact(X)) → MARK(if(zero(X), s(0), prod(X, fact(p(X)))))
MARK(prod(X1, X2)) → ACTIVE(prod(mark(X1), mark(X2)))
ACTIVE(fact(X)) → P(X)
MARK(zero(X)) → MARK(X)
ACTIVE(zero(0)) → MARK(true)
MARK(prod(X1, X2)) → MARK(X1)
ACTIVE(add(s(X), Y)) → ADD(X, Y)
ACTIVE(zero(s(X))) → MARK(false)
MARK(s(X)) → MARK(X)
PROD(X1, mark(X2)) → PROD(X1, X2)
ACTIVE(if(false, X, Y)) → MARK(Y)
ACTIVE(add(s(X), Y)) → S(add(X, Y))
MARK(add(X1, X2)) → MARK(X2)
P(mark(X)) → P(X)
MARK(fact(X)) → MARK(X)
FACT(mark(X)) → FACT(X)
PROD(mark(X1), X2) → PROD(X1, X2)
ACTIVE(add(s(X), Y)) → MARK(s(add(X, Y)))
ADD(X1, mark(X2)) → ADD(X1, X2)
PROD(active(X1), X2) → PROD(X1, X2)
MARK(add(X1, X2)) → MARK(X1)
MARK(s(X)) → ACTIVE(s(mark(X)))
ACTIVE(fact(X)) → FACT(p(X))
IF(X1, mark(X2), X3) → IF(X1, X2, X3)
ACTIVE(fact(X)) → PROD(X, fact(p(X)))
ACTIVE(prod(0, X)) → MARK(0)
MARK(prod(X1, X2)) → MARK(X2)
S(mark(X)) → S(X)
IF(X1, X2, active(X3)) → IF(X1, X2, X3)
MARK(s(X)) → S(mark(X))
MARK(if(X1, X2, X3)) → IF(mark(X1), X2, X3)
ACTIVE(fact(X)) → ZERO(X)
MARK(zero(X)) → ACTIVE(zero(mark(X)))
MARK(if(X1, X2, X3)) → ACTIVE(if(mark(X1), X2, X3))
IF(active(X1), X2, X3) → IF(X1, X2, X3)
IF(mark(X1), X2, X3) → IF(X1, X2, X3)
MARK(p(X)) → P(mark(X))
ACTIVE(fact(X)) → S(0)
IF(X1, active(X2), X3) → IF(X1, X2, X3)
MARK(0) → ACTIVE(0)
ZERO(mark(X)) → ZERO(X)
ACTIVE(fact(X)) → IF(zero(X), s(0), prod(X, fact(p(X))))
ACTIVE(add(0, X)) → MARK(X)
MARK(prod(X1, X2)) → PROD(mark(X1), mark(X2))
ACTIVE(if(true, X, Y)) → MARK(X)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
ZERO(active(X)) → ZERO(X)
ADD(active(X1), X2) → ADD(X1, X2)
ACTIVE(prod(s(X), Y)) → ADD(Y, prod(X, Y))
MARK(p(X)) → ACTIVE(p(mark(X)))
ADD(X1, active(X2)) → ADD(X1, X2)
ADD(mark(X1), X2) → ADD(X1, X2)
ACTIVE(p(s(X))) → MARK(X)
MARK(fact(X)) → FACT(mark(X))
MARK(true) → ACTIVE(true)
MARK(if(X1, X2, X3)) → MARK(X1)
MARK(add(X1, X2)) → ACTIVE(add(mark(X1), mark(X2)))
FACT(active(X)) → FACT(X)
IF(X1, X2, mark(X3)) → IF(X1, X2, X3)
ACTIVE(prod(s(X), Y)) → PROD(X, Y)
MARK(p(X)) → MARK(X)
PROD(X1, active(X2)) → PROD(X1, X2)
MARK(fact(X)) → ACTIVE(fact(mark(X)))
MARK(zero(X)) → ZERO(mark(X))
MARK(add(X1, X2)) → ADD(mark(X1), mark(X2))
S(active(X)) → S(X)
MARK(false) → ACTIVE(false)
P(active(X)) → P(X)
ACTIVE(prod(s(X), Y)) → MARK(add(Y, prod(X, Y)))
ACTIVE(fact(X)) → MARK(if(zero(X), s(0), prod(X, fact(p(X)))))
MARK(prod(X1, X2)) → ACTIVE(prod(mark(X1), mark(X2)))
ACTIVE(fact(X)) → P(X)
MARK(zero(X)) → MARK(X)
ACTIVE(zero(0)) → MARK(true)
MARK(prod(X1, X2)) → MARK(X1)
ACTIVE(add(s(X), Y)) → ADD(X, Y)
ACTIVE(zero(s(X))) → MARK(false)
MARK(s(X)) → MARK(X)
PROD(X1, mark(X2)) → PROD(X1, X2)
ACTIVE(if(false, X, Y)) → MARK(Y)
ACTIVE(add(s(X), Y)) → S(add(X, Y))
MARK(add(X1, X2)) → MARK(X2)
P(mark(X)) → P(X)
MARK(fact(X)) → MARK(X)
FACT(mark(X)) → FACT(X)
PROD(mark(X1), X2) → PROD(X1, X2)
ACTIVE(add(s(X), Y)) → MARK(s(add(X, Y)))
ADD(X1, mark(X2)) → ADD(X1, X2)
PROD(active(X1), X2) → PROD(X1, X2)
MARK(add(X1, X2)) → MARK(X1)
MARK(s(X)) → ACTIVE(s(mark(X)))
ACTIVE(fact(X)) → FACT(p(X))
IF(X1, mark(X2), X3) → IF(X1, X2, X3)
ACTIVE(fact(X)) → PROD(X, fact(p(X)))
ACTIVE(prod(0, X)) → MARK(0)
MARK(prod(X1, X2)) → MARK(X2)
S(mark(X)) → S(X)
IF(X1, X2, active(X3)) → IF(X1, X2, X3)
MARK(s(X)) → S(mark(X))
MARK(if(X1, X2, X3)) → IF(mark(X1), X2, X3)
ACTIVE(fact(X)) → ZERO(X)
MARK(zero(X)) → ACTIVE(zero(mark(X)))
MARK(if(X1, X2, X3)) → ACTIVE(if(mark(X1), X2, X3))
IF(active(X1), X2, X3) → IF(X1, X2, X3)
IF(mark(X1), X2, X3) → IF(X1, X2, X3)
MARK(p(X)) → P(mark(X))
ACTIVE(fact(X)) → S(0)
IF(X1, active(X2), X3) → IF(X1, X2, X3)
MARK(0) → ACTIVE(0)
ZERO(mark(X)) → ZERO(X)
ACTIVE(fact(X)) → IF(zero(X), s(0), prod(X, fact(p(X))))
ACTIVE(add(0, X)) → MARK(X)
MARK(prod(X1, X2)) → PROD(mark(X1), mark(X2))
ACTIVE(if(true, X, Y)) → MARK(X)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
ADD(active(X1), X2) → ADD(X1, X2)
ADD(X1, active(X2)) → ADD(X1, X2)
ADD(X1, mark(X2)) → ADD(X1, X2)
ADD(mark(X1), X2) → ADD(X1, X2)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
ADD(active(X1), X2) → ADD(X1, X2)
ADD(X1, active(X2)) → ADD(X1, X2)
ADD(X1, mark(X2)) → ADD(X1, X2)
ADD(mark(X1), X2) → ADD(X1, X2)
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
P(active(X)) → P(X)
P(mark(X)) → P(X)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
P(active(X)) → P(X)
P(mark(X)) → P(X)
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
PROD(X1, mark(X2)) → PROD(X1, X2)
PROD(mark(X1), X2) → PROD(X1, X2)
PROD(X1, active(X2)) → PROD(X1, X2)
PROD(active(X1), X2) → PROD(X1, X2)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
PROD(X1, mark(X2)) → PROD(X1, X2)
PROD(mark(X1), X2) → PROD(X1, X2)
PROD(active(X1), X2) → PROD(X1, X2)
PROD(X1, active(X2)) → PROD(X1, X2)
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
S(mark(X)) → S(X)
S(active(X)) → S(X)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
S(active(X)) → S(X)
S(mark(X)) → S(X)
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDP
↳ QDP
ZERO(active(X)) → ZERO(X)
ZERO(mark(X)) → ZERO(X)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
↳ QDP
↳ QDP
ZERO(active(X)) → ZERO(X)
ZERO(mark(X)) → ZERO(X)
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDP
IF(X1, mark(X2), X3) → IF(X1, X2, X3)
IF(X1, X2, active(X3)) → IF(X1, X2, X3)
IF(X1, active(X2), X3) → IF(X1, X2, X3)
IF(X1, X2, mark(X3)) → IF(X1, X2, X3)
IF(active(X1), X2, X3) → IF(X1, X2, X3)
IF(mark(X1), X2, X3) → IF(X1, X2, X3)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
↳ QDP
IF(X1, mark(X2), X3) → IF(X1, X2, X3)
IF(X1, X2, active(X3)) → IF(X1, X2, X3)
IF(X1, active(X2), X3) → IF(X1, X2, X3)
IF(X1, X2, mark(X3)) → IF(X1, X2, X3)
IF(mark(X1), X2, X3) → IF(X1, X2, X3)
IF(active(X1), X2, X3) → IF(X1, X2, X3)
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
FACT(active(X)) → FACT(X)
FACT(mark(X)) → FACT(X)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
FACT(active(X)) → FACT(X)
FACT(mark(X)) → FACT(X)
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
MARK(prod(X1, X2)) → MARK(X2)
MARK(prod(X1, X2)) → MARK(X1)
MARK(zero(X)) → ACTIVE(zero(mark(X)))
MARK(s(X)) → MARK(X)
MARK(add(X1, X2)) → MARK(X2)
ACTIVE(if(false, X, Y)) → MARK(Y)
MARK(p(X)) → ACTIVE(p(mark(X)))
MARK(fact(X)) → MARK(X)
MARK(if(X1, X2, X3)) → ACTIVE(if(mark(X1), X2, X3))
ACTIVE(prod(s(X), Y)) → MARK(add(Y, prod(X, Y)))
ACTIVE(fact(X)) → MARK(if(zero(X), s(0), prod(X, fact(p(X)))))
ACTIVE(add(s(X), Y)) → MARK(s(add(X, Y)))
MARK(add(X1, X2)) → MARK(X1)
ACTIVE(p(s(X))) → MARK(X)
MARK(prod(X1, X2)) → ACTIVE(prod(mark(X1), mark(X2)))
MARK(add(X1, X2)) → ACTIVE(add(mark(X1), mark(X2)))
MARK(if(X1, X2, X3)) → MARK(X1)
MARK(s(X)) → ACTIVE(s(mark(X)))
MARK(p(X)) → MARK(X)
MARK(zero(X)) → MARK(X)
ACTIVE(add(0, X)) → MARK(X)
ACTIVE(if(true, X, Y)) → MARK(X)
MARK(fact(X)) → ACTIVE(fact(mark(X)))
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
MARK(zero(X)) → ACTIVE(zero(mark(X)))
MARK(s(X)) → ACTIVE(s(mark(X)))
Used ordering: Polynomial interpretation with max and min functions [25]:
MARK(prod(X1, X2)) → MARK(X2)
MARK(prod(X1, X2)) → MARK(X1)
MARK(s(X)) → MARK(X)
MARK(add(X1, X2)) → MARK(X2)
ACTIVE(if(false, X, Y)) → MARK(Y)
MARK(p(X)) → ACTIVE(p(mark(X)))
MARK(fact(X)) → MARK(X)
MARK(if(X1, X2, X3)) → ACTIVE(if(mark(X1), X2, X3))
ACTIVE(prod(s(X), Y)) → MARK(add(Y, prod(X, Y)))
ACTIVE(fact(X)) → MARK(if(zero(X), s(0), prod(X, fact(p(X)))))
ACTIVE(add(s(X), Y)) → MARK(s(add(X, Y)))
MARK(add(X1, X2)) → MARK(X1)
ACTIVE(p(s(X))) → MARK(X)
MARK(prod(X1, X2)) → ACTIVE(prod(mark(X1), mark(X2)))
MARK(add(X1, X2)) → ACTIVE(add(mark(X1), mark(X2)))
MARK(if(X1, X2, X3)) → MARK(X1)
MARK(p(X)) → MARK(X)
MARK(zero(X)) → MARK(X)
ACTIVE(add(0, X)) → MARK(X)
ACTIVE(if(true, X, Y)) → MARK(X)
MARK(fact(X)) → ACTIVE(fact(mark(X)))
POL(0) = 0
POL(ACTIVE(x1)) = x1
POL(MARK(x1)) = 1
POL(active(x1)) = 0
POL(add(x1, x2)) = 1
POL(fact(x1)) = 1
POL(false) = 0
POL(if(x1, x2, x3)) = 1
POL(mark(x1)) = 0
POL(p(x1)) = 1
POL(prod(x1, x2)) = 1
POL(s(x1)) = 0
POL(true) = 0
POL(zero(x1)) = 0
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
fact(active(X)) → fact(X)
fact(mark(X)) → fact(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
s(active(X)) → s(X)
s(mark(X)) → s(X)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
add(X1, mark(X2)) → add(X1, X2)
add(mark(X1), X2) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
p(active(X)) → p(X)
p(mark(X)) → p(X)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ Narrowing
MARK(prod(X1, X2)) → MARK(X2)
MARK(prod(X1, X2)) → MARK(X1)
MARK(s(X)) → MARK(X)
MARK(add(X1, X2)) → MARK(X2)
ACTIVE(if(false, X, Y)) → MARK(Y)
MARK(p(X)) → ACTIVE(p(mark(X)))
MARK(fact(X)) → MARK(X)
MARK(if(X1, X2, X3)) → ACTIVE(if(mark(X1), X2, X3))
ACTIVE(prod(s(X), Y)) → MARK(add(Y, prod(X, Y)))
ACTIVE(fact(X)) → MARK(if(zero(X), s(0), prod(X, fact(p(X)))))
ACTIVE(add(s(X), Y)) → MARK(s(add(X, Y)))
MARK(add(X1, X2)) → MARK(X1)
ACTIVE(p(s(X))) → MARK(X)
MARK(prod(X1, X2)) → ACTIVE(prod(mark(X1), mark(X2)))
MARK(if(X1, X2, X3)) → MARK(X1)
MARK(add(X1, X2)) → ACTIVE(add(mark(X1), mark(X2)))
MARK(zero(X)) → MARK(X)
MARK(p(X)) → MARK(X)
ACTIVE(add(0, X)) → MARK(X)
ACTIVE(if(true, X, Y)) → MARK(X)
MARK(fact(X)) → ACTIVE(fact(mark(X)))
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
MARK(p(fact(x0))) → ACTIVE(p(active(fact(mark(x0)))))
MARK(p(if(x0, x1, x2))) → ACTIVE(p(active(if(mark(x0), x1, x2))))
MARK(p(true)) → ACTIVE(p(active(true)))
MARK(p(add(x0, x1))) → ACTIVE(p(active(add(mark(x0), mark(x1)))))
MARK(p(false)) → ACTIVE(p(active(false)))
MARK(p(zero(x0))) → ACTIVE(p(active(zero(mark(x0)))))
MARK(p(0)) → ACTIVE(p(active(0)))
MARK(p(prod(x0, x1))) → ACTIVE(p(active(prod(mark(x0), mark(x1)))))
MARK(p(x0)) → ACTIVE(p(x0))
MARK(p(s(x0))) → ACTIVE(p(active(s(mark(x0)))))
MARK(p(p(x0))) → ACTIVE(p(active(p(mark(x0)))))
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
MARK(prod(X1, X2)) → MARK(X1)
MARK(p(fact(x0))) → ACTIVE(p(active(fact(mark(x0)))))
MARK(s(X)) → MARK(X)
MARK(add(X1, X2)) → MARK(X2)
ACTIVE(if(false, X, Y)) → MARK(Y)
MARK(fact(X)) → MARK(X)
MARK(p(true)) → ACTIVE(p(active(true)))
ACTIVE(add(s(X), Y)) → MARK(s(add(X, Y)))
MARK(add(X1, X2)) → MARK(X1)
ACTIVE(p(s(X))) → MARK(X)
MARK(if(X1, X2, X3)) → MARK(X1)
MARK(add(X1, X2)) → ACTIVE(add(mark(X1), mark(X2)))
MARK(p(zero(x0))) → ACTIVE(p(active(zero(mark(x0)))))
MARK(p(X)) → MARK(X)
MARK(p(prod(x0, x1))) → ACTIVE(p(active(prod(mark(x0), mark(x1)))))
MARK(p(s(x0))) → ACTIVE(p(active(s(mark(x0)))))
MARK(fact(X)) → ACTIVE(fact(mark(X)))
MARK(prod(X1, X2)) → MARK(X2)
MARK(p(if(x0, x1, x2))) → ACTIVE(p(active(if(mark(x0), x1, x2))))
MARK(if(X1, X2, X3)) → ACTIVE(if(mark(X1), X2, X3))
MARK(p(add(x0, x1))) → ACTIVE(p(active(add(mark(x0), mark(x1)))))
MARK(p(false)) → ACTIVE(p(active(false)))
ACTIVE(prod(s(X), Y)) → MARK(add(Y, prod(X, Y)))
ACTIVE(fact(X)) → MARK(if(zero(X), s(0), prod(X, fact(p(X)))))
MARK(p(x0)) → ACTIVE(p(x0))
MARK(p(p(x0))) → ACTIVE(p(active(p(mark(x0)))))
MARK(prod(X1, X2)) → ACTIVE(prod(mark(X1), mark(X2)))
MARK(p(0)) → ACTIVE(p(active(0)))
MARK(zero(X)) → MARK(X)
ACTIVE(add(0, X)) → MARK(X)
ACTIVE(if(true, X, Y)) → MARK(X)
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
MARK(if(p(x0), y1, y2)) → ACTIVE(if(active(p(mark(x0))), y1, y2))
MARK(if(zero(x0), y1, y2)) → ACTIVE(if(active(zero(mark(x0))), y1, y2))
MARK(if(0, y1, y2)) → ACTIVE(if(active(0), y1, y2))
MARK(if(s(x0), y1, y2)) → ACTIVE(if(active(s(mark(x0))), y1, y2))
MARK(if(prod(x0, x1), y1, y2)) → ACTIVE(if(active(prod(mark(x0), mark(x1))), y1, y2))
MARK(if(y0, active(x1), x2)) → ACTIVE(if(mark(y0), x1, x2))
MARK(if(true, y1, y2)) → ACTIVE(if(active(true), y1, y2))
MARK(if(x0, x1, x2)) → ACTIVE(if(x0, x1, x2))
MARK(if(false, y1, y2)) → ACTIVE(if(active(false), y1, y2))
MARK(if(y0, x1, mark(x2))) → ACTIVE(if(mark(y0), x1, x2))
MARK(if(add(x0, x1), y1, y2)) → ACTIVE(if(active(add(mark(x0), mark(x1))), y1, y2))
MARK(if(fact(x0), y1, y2)) → ACTIVE(if(active(fact(mark(x0))), y1, y2))
MARK(if(y0, mark(x1), x2)) → ACTIVE(if(mark(y0), x1, x2))
MARK(if(if(x0, x1, x2), y1, y2)) → ACTIVE(if(active(if(mark(x0), x1, x2)), y1, y2))
MARK(if(y0, x1, active(x2))) → ACTIVE(if(mark(y0), x1, x2))
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
MARK(if(zero(x0), y1, y2)) → ACTIVE(if(active(zero(mark(x0))), y1, y2))
MARK(p(fact(x0))) → ACTIVE(p(active(fact(mark(x0)))))
MARK(prod(X1, X2)) → MARK(X1)
MARK(if(0, y1, y2)) → ACTIVE(if(active(0), y1, y2))
MARK(if(prod(x0, x1), y1, y2)) → ACTIVE(if(active(prod(mark(x0), mark(x1))), y1, y2))
MARK(s(X)) → MARK(X)
ACTIVE(if(false, X, Y)) → MARK(Y)
MARK(add(X1, X2)) → MARK(X2)
MARK(fact(X)) → MARK(X)
MARK(p(true)) → ACTIVE(p(active(true)))
MARK(if(y0, active(x1), x2)) → ACTIVE(if(mark(y0), x1, x2))
ACTIVE(add(s(X), Y)) → MARK(s(add(X, Y)))
MARK(if(true, y1, y2)) → ACTIVE(if(active(true), y1, y2))
MARK(if(y0, x1, mark(x2))) → ACTIVE(if(mark(y0), x1, x2))
ACTIVE(p(s(X))) → MARK(X)
MARK(add(X1, X2)) → MARK(X1)
MARK(if(add(x0, x1), y1, y2)) → ACTIVE(if(active(add(mark(x0), mark(x1))), y1, y2))
MARK(add(X1, X2)) → ACTIVE(add(mark(X1), mark(X2)))
MARK(if(X1, X2, X3)) → MARK(X1)
MARK(p(zero(x0))) → ACTIVE(p(active(zero(mark(x0)))))
MARK(p(X)) → MARK(X)
MARK(p(prod(x0, x1))) → ACTIVE(p(active(prod(mark(x0), mark(x1)))))
MARK(p(s(x0))) → ACTIVE(p(active(s(mark(x0)))))
MARK(fact(X)) → ACTIVE(fact(mark(X)))
MARK(if(p(x0), y1, y2)) → ACTIVE(if(active(p(mark(x0))), y1, y2))
MARK(prod(X1, X2)) → MARK(X2)
MARK(p(if(x0, x1, x2))) → ACTIVE(p(active(if(mark(x0), x1, x2))))
MARK(if(s(x0), y1, y2)) → ACTIVE(if(active(s(mark(x0))), y1, y2))
MARK(p(add(x0, x1))) → ACTIVE(p(active(add(mark(x0), mark(x1)))))
ACTIVE(prod(s(X), Y)) → MARK(add(Y, prod(X, Y)))
MARK(p(false)) → ACTIVE(p(active(false)))
ACTIVE(fact(X)) → MARK(if(zero(X), s(0), prod(X, fact(p(X)))))
MARK(if(x0, x1, x2)) → ACTIVE(if(x0, x1, x2))
MARK(p(x0)) → ACTIVE(p(x0))
MARK(if(false, y1, y2)) → ACTIVE(if(active(false), y1, y2))
MARK(p(p(x0))) → ACTIVE(p(active(p(mark(x0)))))
MARK(prod(X1, X2)) → ACTIVE(prod(mark(X1), mark(X2)))
MARK(p(0)) → ACTIVE(p(active(0)))
MARK(zero(X)) → MARK(X)
MARK(if(y0, mark(x1), x2)) → ACTIVE(if(mark(y0), x1, x2))
MARK(if(fact(x0), y1, y2)) → ACTIVE(if(active(fact(mark(x0))), y1, y2))
ACTIVE(add(0, X)) → MARK(X)
MARK(if(if(x0, x1, x2), y1, y2)) → ACTIVE(if(active(if(mark(x0), x1, x2)), y1, y2))
ACTIVE(if(true, X, Y)) → MARK(X)
MARK(if(y0, x1, active(x2))) → ACTIVE(if(mark(y0), x1, x2))
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
MARK(prod(y0, prod(x0, x1))) → ACTIVE(prod(mark(y0), active(prod(mark(x0), mark(x1)))))
MARK(prod(fact(x0), y1)) → ACTIVE(prod(active(fact(mark(x0))), mark(y1)))
MARK(prod(p(x0), y1)) → ACTIVE(prod(active(p(mark(x0))), mark(y1)))
MARK(prod(y0, true)) → ACTIVE(prod(mark(y0), active(true)))
MARK(prod(true, y1)) → ACTIVE(prod(active(true), mark(y1)))
MARK(prod(y0, zero(x0))) → ACTIVE(prod(mark(y0), active(zero(mark(x0)))))
MARK(prod(if(x0, x1, x2), y1)) → ACTIVE(prod(active(if(mark(x0), x1, x2)), mark(y1)))
MARK(prod(y0, if(x0, x1, x2))) → ACTIVE(prod(mark(y0), active(if(mark(x0), x1, x2))))
MARK(prod(y0, x1)) → ACTIVE(prod(mark(y0), x1))
MARK(prod(y0, fact(x0))) → ACTIVE(prod(mark(y0), active(fact(mark(x0)))))
MARK(prod(add(x0, x1), y1)) → ACTIVE(prod(active(add(mark(x0), mark(x1))), mark(y1)))
MARK(prod(y0, s(x0))) → ACTIVE(prod(mark(y0), active(s(mark(x0)))))
MARK(prod(y0, false)) → ACTIVE(prod(mark(y0), active(false)))
MARK(prod(false, y1)) → ACTIVE(prod(active(false), mark(y1)))
MARK(prod(x0, y1)) → ACTIVE(prod(x0, mark(y1)))
MARK(prod(y0, 0)) → ACTIVE(prod(mark(y0), active(0)))
MARK(prod(0, y1)) → ACTIVE(prod(active(0), mark(y1)))
MARK(prod(y0, p(x0))) → ACTIVE(prod(mark(y0), active(p(mark(x0)))))
MARK(prod(y0, add(x0, x1))) → ACTIVE(prod(mark(y0), active(add(mark(x0), mark(x1)))))
MARK(prod(zero(x0), y1)) → ACTIVE(prod(active(zero(mark(x0))), mark(y1)))
MARK(prod(prod(x0, x1), y1)) → ACTIVE(prod(active(prod(mark(x0), mark(x1))), mark(y1)))
MARK(prod(s(x0), y1)) → ACTIVE(prod(active(s(mark(x0))), mark(y1)))
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
MARK(prod(y0, prod(x0, x1))) → ACTIVE(prod(mark(y0), active(prod(mark(x0), mark(x1)))))
MARK(if(0, y1, y2)) → ACTIVE(if(active(0), y1, y2))
MARK(prod(y0, zero(x0))) → ACTIVE(prod(mark(y0), active(zero(mark(x0)))))
MARK(if(prod(x0, x1), y1, y2)) → ACTIVE(if(active(prod(mark(x0), mark(x1))), y1, y2))
MARK(prod(if(x0, x1, x2), y1)) → ACTIVE(prod(active(if(mark(x0), x1, x2)), mark(y1)))
MARK(p(true)) → ACTIVE(p(active(true)))
MARK(if(y0, active(x1), x2)) → ACTIVE(if(mark(y0), x1, x2))
MARK(prod(add(x0, x1), y1)) → ACTIVE(prod(active(add(mark(x0), mark(x1))), mark(y1)))
MARK(if(y0, x1, mark(x2))) → ACTIVE(if(mark(y0), x1, x2))
ACTIVE(p(s(X))) → MARK(X)
MARK(prod(y0, s(x0))) → ACTIVE(prod(mark(y0), active(s(mark(x0)))))
MARK(prod(false, y1)) → ACTIVE(prod(active(false), mark(y1)))
MARK(prod(y0, false)) → ACTIVE(prod(mark(y0), active(false)))
MARK(add(X1, X2)) → ACTIVE(add(mark(X1), mark(X2)))
MARK(if(X1, X2, X3)) → MARK(X1)
MARK(prod(y0, add(x0, x1))) → ACTIVE(prod(mark(y0), active(add(mark(x0), mark(x1)))))
MARK(p(X)) → MARK(X)
MARK(p(prod(x0, x1))) → ACTIVE(p(active(prod(mark(x0), mark(x1)))))
MARK(prod(prod(x0, x1), y1)) → ACTIVE(prod(active(prod(mark(x0), mark(x1))), mark(y1)))
MARK(fact(X)) → ACTIVE(fact(mark(X)))
ACTIVE(prod(s(X), Y)) → MARK(add(Y, prod(X, Y)))
MARK(p(false)) → ACTIVE(p(active(false)))
ACTIVE(fact(X)) → MARK(if(zero(X), s(0), prod(X, fact(p(X)))))
MARK(if(x0, x1, x2)) → ACTIVE(if(x0, x1, x2))
MARK(p(0)) → ACTIVE(p(active(0)))
MARK(zero(X)) → MARK(X)
MARK(if(y0, mark(x1), x2)) → ACTIVE(if(mark(y0), x1, x2))
MARK(if(fact(x0), y1, y2)) → ACTIVE(if(active(fact(mark(x0))), y1, y2))
MARK(if(if(x0, x1, x2), y1, y2)) → ACTIVE(if(active(if(mark(x0), x1, x2)), y1, y2))
MARK(prod(s(x0), y1)) → ACTIVE(prod(active(s(mark(x0))), mark(y1)))
MARK(if(zero(x0), y1, y2)) → ACTIVE(if(active(zero(mark(x0))), y1, y2))
MARK(p(fact(x0))) → ACTIVE(p(active(fact(mark(x0)))))
MARK(prod(X1, X2)) → MARK(X1)
MARK(prod(fact(x0), y1)) → ACTIVE(prod(active(fact(mark(x0))), mark(y1)))
MARK(prod(p(x0), y1)) → ACTIVE(prod(active(p(mark(x0))), mark(y1)))
MARK(s(X)) → MARK(X)
ACTIVE(if(false, X, Y)) → MARK(Y)
MARK(add(X1, X2)) → MARK(X2)
MARK(fact(X)) → MARK(X)
MARK(prod(y0, if(x0, x1, x2))) → ACTIVE(prod(mark(y0), active(if(mark(x0), x1, x2))))
MARK(prod(y0, x1)) → ACTIVE(prod(mark(y0), x1))
ACTIVE(add(s(X), Y)) → MARK(s(add(X, Y)))
MARK(prod(y0, fact(x0))) → ACTIVE(prod(mark(y0), active(fact(mark(x0)))))
MARK(if(true, y1, y2)) → ACTIVE(if(active(true), y1, y2))
MARK(add(X1, X2)) → MARK(X1)
MARK(if(add(x0, x1), y1, y2)) → ACTIVE(if(active(add(mark(x0), mark(x1))), y1, y2))
MARK(prod(x0, y1)) → ACTIVE(prod(x0, mark(y1)))
MARK(prod(0, y1)) → ACTIVE(prod(active(0), mark(y1)))
MARK(prod(y0, 0)) → ACTIVE(prod(mark(y0), active(0)))
MARK(p(zero(x0))) → ACTIVE(p(active(zero(mark(x0)))))
MARK(p(s(x0))) → ACTIVE(p(active(s(mark(x0)))))
MARK(if(p(x0), y1, y2)) → ACTIVE(if(active(p(mark(x0))), y1, y2))
MARK(prod(X1, X2)) → MARK(X2)
MARK(prod(true, y1)) → ACTIVE(prod(active(true), mark(y1)))
MARK(prod(y0, true)) → ACTIVE(prod(mark(y0), active(true)))
MARK(p(if(x0, x1, x2))) → ACTIVE(p(active(if(mark(x0), x1, x2))))
MARK(if(s(x0), y1, y2)) → ACTIVE(if(active(s(mark(x0))), y1, y2))
MARK(p(add(x0, x1))) → ACTIVE(p(active(add(mark(x0), mark(x1)))))
MARK(p(x0)) → ACTIVE(p(x0))
MARK(if(false, y1, y2)) → ACTIVE(if(active(false), y1, y2))
MARK(p(p(x0))) → ACTIVE(p(active(p(mark(x0)))))
MARK(prod(y0, p(x0))) → ACTIVE(prod(mark(y0), active(p(mark(x0)))))
MARK(prod(zero(x0), y1)) → ACTIVE(prod(active(zero(mark(x0))), mark(y1)))
ACTIVE(add(0, X)) → MARK(X)
ACTIVE(if(true, X, Y)) → MARK(X)
MARK(if(y0, x1, active(x2))) → ACTIVE(if(mark(y0), x1, x2))
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
MARK(add(y0, zero(x0))) → ACTIVE(add(mark(y0), active(zero(mark(x0)))))
MARK(add(add(x0, x1), y1)) → ACTIVE(add(active(add(mark(x0), mark(x1))), mark(y1)))
MARK(add(fact(x0), y1)) → ACTIVE(add(active(fact(mark(x0))), mark(y1)))
MARK(add(zero(x0), y1)) → ACTIVE(add(active(zero(mark(x0))), mark(y1)))
MARK(add(y0, false)) → ACTIVE(add(mark(y0), active(false)))
MARK(add(false, y1)) → ACTIVE(add(active(false), mark(y1)))
MARK(add(y0, s(x0))) → ACTIVE(add(mark(y0), active(s(mark(x0)))))
MARK(add(if(x0, x1, x2), y1)) → ACTIVE(add(active(if(mark(x0), x1, x2)), mark(y1)))
MARK(add(s(x0), y1)) → ACTIVE(add(active(s(mark(x0))), mark(y1)))
MARK(add(y0, prod(x0, x1))) → ACTIVE(add(mark(y0), active(prod(mark(x0), mark(x1)))))
MARK(add(y0, x1)) → ACTIVE(add(mark(y0), x1))
MARK(add(prod(x0, x1), y1)) → ACTIVE(add(active(prod(mark(x0), mark(x1))), mark(y1)))
MARK(add(p(x0), y1)) → ACTIVE(add(active(p(mark(x0))), mark(y1)))
MARK(add(y0, 0)) → ACTIVE(add(mark(y0), active(0)))
MARK(add(y0, if(x0, x1, x2))) → ACTIVE(add(mark(y0), active(if(mark(x0), x1, x2))))
MARK(add(0, y1)) → ACTIVE(add(active(0), mark(y1)))
MARK(add(x0, y1)) → ACTIVE(add(x0, mark(y1)))
MARK(add(y0, p(x0))) → ACTIVE(add(mark(y0), active(p(mark(x0)))))
MARK(add(y0, true)) → ACTIVE(add(mark(y0), active(true)))
MARK(add(true, y1)) → ACTIVE(add(active(true), mark(y1)))
MARK(add(y0, add(x0, x1))) → ACTIVE(add(mark(y0), active(add(mark(x0), mark(x1)))))
MARK(add(y0, fact(x0))) → ACTIVE(add(mark(y0), active(fact(mark(x0)))))
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
MARK(prod(y0, prod(x0, x1))) → ACTIVE(prod(mark(y0), active(prod(mark(x0), mark(x1)))))
MARK(if(0, y1, y2)) → ACTIVE(if(active(0), y1, y2))
MARK(if(prod(x0, x1), y1, y2)) → ACTIVE(if(active(prod(mark(x0), mark(x1))), y1, y2))
MARK(prod(y0, zero(x0))) → ACTIVE(prod(mark(y0), active(zero(mark(x0)))))
MARK(prod(if(x0, x1, x2), y1)) → ACTIVE(prod(active(if(mark(x0), x1, x2)), mark(y1)))
MARK(add(false, y1)) → ACTIVE(add(active(false), mark(y1)))
MARK(add(y0, false)) → ACTIVE(add(mark(y0), active(false)))
MARK(add(y0, s(x0))) → ACTIVE(add(mark(y0), active(s(mark(x0)))))
MARK(p(true)) → ACTIVE(p(active(true)))
MARK(if(y0, active(x1), x2)) → ACTIVE(if(mark(y0), x1, x2))
ACTIVE(p(s(X))) → MARK(X)
MARK(if(y0, x1, mark(x2))) → ACTIVE(if(mark(y0), x1, x2))
MARK(prod(add(x0, x1), y1)) → ACTIVE(prod(active(add(mark(x0), mark(x1))), mark(y1)))
MARK(prod(y0, s(x0))) → ACTIVE(prod(mark(y0), active(s(mark(x0)))))
MARK(prod(y0, false)) → ACTIVE(prod(mark(y0), active(false)))
MARK(prod(false, y1)) → ACTIVE(prod(active(false), mark(y1)))
MARK(if(X1, X2, X3)) → MARK(X1)
MARK(prod(y0, add(x0, x1))) → ACTIVE(prod(mark(y0), active(add(mark(x0), mark(x1)))))
MARK(p(X)) → MARK(X)
MARK(p(prod(x0, x1))) → ACTIVE(p(active(prod(mark(x0), mark(x1)))))
MARK(prod(prod(x0, x1), y1)) → ACTIVE(prod(active(prod(mark(x0), mark(x1))), mark(y1)))
MARK(add(y0, add(x0, x1))) → ACTIVE(add(mark(y0), active(add(mark(x0), mark(x1)))))
MARK(fact(X)) → ACTIVE(fact(mark(X)))
MARK(add(add(x0, x1), y1)) → ACTIVE(add(active(add(mark(x0), mark(x1))), mark(y1)))
MARK(add(fact(x0), y1)) → ACTIVE(add(active(fact(mark(x0))), mark(y1)))
MARK(add(zero(x0), y1)) → ACTIVE(add(active(zero(mark(x0))), mark(y1)))
MARK(p(false)) → ACTIVE(p(active(false)))
ACTIVE(prod(s(X), Y)) → MARK(add(Y, prod(X, Y)))
ACTIVE(fact(X)) → MARK(if(zero(X), s(0), prod(X, fact(p(X)))))
MARK(if(x0, x1, x2)) → ACTIVE(if(x0, x1, x2))
MARK(add(y0, x1)) → ACTIVE(add(mark(y0), x1))
MARK(add(y0, prod(x0, x1))) → ACTIVE(add(mark(y0), active(prod(mark(x0), mark(x1)))))
MARK(add(x0, y1)) → ACTIVE(add(x0, mark(y1)))
MARK(p(0)) → ACTIVE(p(active(0)))
MARK(zero(X)) → MARK(X)
MARK(if(fact(x0), y1, y2)) → ACTIVE(if(active(fact(mark(x0))), y1, y2))
MARK(if(y0, mark(x1), x2)) → ACTIVE(if(mark(y0), x1, x2))
MARK(if(if(x0, x1, x2), y1, y2)) → ACTIVE(if(active(if(mark(x0), x1, x2)), y1, y2))
MARK(prod(s(x0), y1)) → ACTIVE(prod(active(s(mark(x0))), mark(y1)))
MARK(prod(p(x0), y1)) → ACTIVE(prod(active(p(mark(x0))), mark(y1)))
MARK(prod(fact(x0), y1)) → ACTIVE(prod(active(fact(mark(x0))), mark(y1)))
MARK(prod(X1, X2)) → MARK(X1)
MARK(p(fact(x0))) → ACTIVE(p(active(fact(mark(x0)))))
MARK(if(zero(x0), y1, y2)) → ACTIVE(if(active(zero(mark(x0))), y1, y2))
MARK(s(X)) → MARK(X)
MARK(add(X1, X2)) → MARK(X2)
ACTIVE(if(false, X, Y)) → MARK(Y)
MARK(fact(X)) → MARK(X)
MARK(prod(y0, if(x0, x1, x2))) → ACTIVE(prod(mark(y0), active(if(mark(x0), x1, x2))))
MARK(prod(y0, x1)) → ACTIVE(prod(mark(y0), x1))
ACTIVE(add(s(X), Y)) → MARK(s(add(X, Y)))
MARK(if(true, y1, y2)) → ACTIVE(if(active(true), y1, y2))
MARK(prod(y0, fact(x0))) → ACTIVE(prod(mark(y0), active(fact(mark(x0)))))
MARK(add(X1, X2)) → MARK(X1)
MARK(if(add(x0, x1), y1, y2)) → ACTIVE(if(active(add(mark(x0), mark(x1))), y1, y2))
MARK(add(prod(x0, x1), y1)) → ACTIVE(add(active(prod(mark(x0), mark(x1))), mark(y1)))
MARK(prod(x0, y1)) → ACTIVE(prod(x0, mark(y1)))
MARK(prod(y0, 0)) → ACTIVE(prod(mark(y0), active(0)))
MARK(prod(0, y1)) → ACTIVE(prod(active(0), mark(y1)))
MARK(p(zero(x0))) → ACTIVE(p(active(zero(mark(x0)))))
MARK(p(s(x0))) → ACTIVE(p(active(s(mark(x0)))))
MARK(prod(X1, X2)) → MARK(X2)
MARK(if(p(x0), y1, y2)) → ACTIVE(if(active(p(mark(x0))), y1, y2))
MARK(add(y0, zero(x0))) → ACTIVE(add(mark(y0), active(zero(mark(x0)))))
MARK(prod(y0, true)) → ACTIVE(prod(mark(y0), active(true)))
MARK(prod(true, y1)) → ACTIVE(prod(active(true), mark(y1)))
MARK(p(if(x0, x1, x2))) → ACTIVE(p(active(if(mark(x0), x1, x2))))
MARK(if(s(x0), y1, y2)) → ACTIVE(if(active(s(mark(x0))), y1, y2))
MARK(p(add(x0, x1))) → ACTIVE(p(active(add(mark(x0), mark(x1)))))
MARK(add(if(x0, x1, x2), y1)) → ACTIVE(add(active(if(mark(x0), x1, x2)), mark(y1)))
MARK(add(s(x0), y1)) → ACTIVE(add(active(s(mark(x0))), mark(y1)))
MARK(p(x0)) → ACTIVE(p(x0))
MARK(p(p(x0))) → ACTIVE(p(active(p(mark(x0)))))
MARK(if(false, y1, y2)) → ACTIVE(if(active(false), y1, y2))
MARK(add(p(x0), y1)) → ACTIVE(add(active(p(mark(x0))), mark(y1)))
MARK(add(0, y1)) → ACTIVE(add(active(0), mark(y1)))
MARK(add(y0, if(x0, x1, x2))) → ACTIVE(add(mark(y0), active(if(mark(x0), x1, x2))))
MARK(add(y0, 0)) → ACTIVE(add(mark(y0), active(0)))
MARK(prod(y0, p(x0))) → ACTIVE(prod(mark(y0), active(p(mark(x0)))))
MARK(add(y0, p(x0))) → ACTIVE(add(mark(y0), active(p(mark(x0)))))
MARK(prod(zero(x0), y1)) → ACTIVE(prod(active(zero(mark(x0))), mark(y1)))
MARK(add(true, y1)) → ACTIVE(add(active(true), mark(y1)))
MARK(add(y0, true)) → ACTIVE(add(mark(y0), active(true)))
ACTIVE(add(0, X)) → MARK(X)
ACTIVE(if(true, X, Y)) → MARK(X)
MARK(add(y0, fact(x0))) → ACTIVE(add(mark(y0), active(fact(mark(x0)))))
MARK(if(y0, x1, active(x2))) → ACTIVE(if(mark(y0), x1, x2))
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
MARK(p(true)) → ACTIVE(p(true))
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
MARK(prod(y0, prod(x0, x1))) → ACTIVE(prod(mark(y0), active(prod(mark(x0), mark(x1)))))
MARK(if(0, y1, y2)) → ACTIVE(if(active(0), y1, y2))
MARK(prod(y0, zero(x0))) → ACTIVE(prod(mark(y0), active(zero(mark(x0)))))
MARK(if(prod(x0, x1), y1, y2)) → ACTIVE(if(active(prod(mark(x0), mark(x1))), y1, y2))
MARK(prod(if(x0, x1, x2), y1)) → ACTIVE(prod(active(if(mark(x0), x1, x2)), mark(y1)))
MARK(add(y0, false)) → ACTIVE(add(mark(y0), active(false)))
MARK(add(false, y1)) → ACTIVE(add(active(false), mark(y1)))
MARK(add(y0, s(x0))) → ACTIVE(add(mark(y0), active(s(mark(x0)))))
MARK(if(y0, active(x1), x2)) → ACTIVE(if(mark(y0), x1, x2))
MARK(prod(add(x0, x1), y1)) → ACTIVE(prod(active(add(mark(x0), mark(x1))), mark(y1)))
MARK(if(y0, x1, mark(x2))) → ACTIVE(if(mark(y0), x1, x2))
ACTIVE(p(s(X))) → MARK(X)
MARK(prod(y0, s(x0))) → ACTIVE(prod(mark(y0), active(s(mark(x0)))))
MARK(prod(false, y1)) → ACTIVE(prod(active(false), mark(y1)))
MARK(prod(y0, false)) → ACTIVE(prod(mark(y0), active(false)))
MARK(if(X1, X2, X3)) → MARK(X1)
MARK(prod(y0, add(x0, x1))) → ACTIVE(prod(mark(y0), active(add(mark(x0), mark(x1)))))
MARK(p(X)) → MARK(X)
MARK(p(prod(x0, x1))) → ACTIVE(p(active(prod(mark(x0), mark(x1)))))
MARK(prod(prod(x0, x1), y1)) → ACTIVE(prod(active(prod(mark(x0), mark(x1))), mark(y1)))
MARK(fact(X)) → ACTIVE(fact(mark(X)))
MARK(add(y0, add(x0, x1))) → ACTIVE(add(mark(y0), active(add(mark(x0), mark(x1)))))
MARK(add(add(x0, x1), y1)) → ACTIVE(add(active(add(mark(x0), mark(x1))), mark(y1)))
MARK(add(fact(x0), y1)) → ACTIVE(add(active(fact(mark(x0))), mark(y1)))
MARK(add(zero(x0), y1)) → ACTIVE(add(active(zero(mark(x0))), mark(y1)))
ACTIVE(prod(s(X), Y)) → MARK(add(Y, prod(X, Y)))
MARK(p(false)) → ACTIVE(p(active(false)))
ACTIVE(fact(X)) → MARK(if(zero(X), s(0), prod(X, fact(p(X)))))
MARK(if(x0, x1, x2)) → ACTIVE(if(x0, x1, x2))
MARK(add(y0, prod(x0, x1))) → ACTIVE(add(mark(y0), active(prod(mark(x0), mark(x1)))))
MARK(add(y0, x1)) → ACTIVE(add(mark(y0), x1))
MARK(add(x0, y1)) → ACTIVE(add(x0, mark(y1)))
MARK(p(0)) → ACTIVE(p(active(0)))
MARK(zero(X)) → MARK(X)
MARK(if(y0, mark(x1), x2)) → ACTIVE(if(mark(y0), x1, x2))
MARK(if(fact(x0), y1, y2)) → ACTIVE(if(active(fact(mark(x0))), y1, y2))
MARK(if(if(x0, x1, x2), y1, y2)) → ACTIVE(if(active(if(mark(x0), x1, x2)), y1, y2))
MARK(prod(s(x0), y1)) → ACTIVE(prod(active(s(mark(x0))), mark(y1)))
MARK(if(zero(x0), y1, y2)) → ACTIVE(if(active(zero(mark(x0))), y1, y2))
MARK(p(fact(x0))) → ACTIVE(p(active(fact(mark(x0)))))
MARK(prod(X1, X2)) → MARK(X1)
MARK(prod(fact(x0), y1)) → ACTIVE(prod(active(fact(mark(x0))), mark(y1)))
MARK(prod(p(x0), y1)) → ACTIVE(prod(active(p(mark(x0))), mark(y1)))
MARK(s(X)) → MARK(X)
ACTIVE(if(false, X, Y)) → MARK(Y)
MARK(add(X1, X2)) → MARK(X2)
MARK(fact(X)) → MARK(X)
MARK(prod(y0, if(x0, x1, x2))) → ACTIVE(prod(mark(y0), active(if(mark(x0), x1, x2))))
MARK(prod(y0, x1)) → ACTIVE(prod(mark(y0), x1))
ACTIVE(add(s(X), Y)) → MARK(s(add(X, Y)))
MARK(prod(y0, fact(x0))) → ACTIVE(prod(mark(y0), active(fact(mark(x0)))))
MARK(if(true, y1, y2)) → ACTIVE(if(active(true), y1, y2))
MARK(add(X1, X2)) → MARK(X1)
MARK(if(add(x0, x1), y1, y2)) → ACTIVE(if(active(add(mark(x0), mark(x1))), y1, y2))
MARK(add(prod(x0, x1), y1)) → ACTIVE(add(active(prod(mark(x0), mark(x1))), mark(y1)))
MARK(prod(x0, y1)) → ACTIVE(prod(x0, mark(y1)))
MARK(prod(0, y1)) → ACTIVE(prod(active(0), mark(y1)))
MARK(prod(y0, 0)) → ACTIVE(prod(mark(y0), active(0)))
MARK(p(zero(x0))) → ACTIVE(p(active(zero(mark(x0)))))
MARK(p(s(x0))) → ACTIVE(p(active(s(mark(x0)))))
MARK(if(p(x0), y1, y2)) → ACTIVE(if(active(p(mark(x0))), y1, y2))
MARK(prod(X1, X2)) → MARK(X2)
MARK(add(y0, zero(x0))) → ACTIVE(add(mark(y0), active(zero(mark(x0)))))
MARK(prod(true, y1)) → ACTIVE(prod(active(true), mark(y1)))
MARK(prod(y0, true)) → ACTIVE(prod(mark(y0), active(true)))
MARK(p(if(x0, x1, x2))) → ACTIVE(p(active(if(mark(x0), x1, x2))))
MARK(if(s(x0), y1, y2)) → ACTIVE(if(active(s(mark(x0))), y1, y2))
MARK(p(add(x0, x1))) → ACTIVE(p(active(add(mark(x0), mark(x1)))))
MARK(p(true)) → ACTIVE(p(true))
MARK(add(if(x0, x1, x2), y1)) → ACTIVE(add(active(if(mark(x0), x1, x2)), mark(y1)))
MARK(add(s(x0), y1)) → ACTIVE(add(active(s(mark(x0))), mark(y1)))
MARK(p(x0)) → ACTIVE(p(x0))
MARK(if(false, y1, y2)) → ACTIVE(if(active(false), y1, y2))
MARK(p(p(x0))) → ACTIVE(p(active(p(mark(x0)))))
MARK(add(p(x0), y1)) → ACTIVE(add(active(p(mark(x0))), mark(y1)))
MARK(prod(y0, p(x0))) → ACTIVE(prod(mark(y0), active(p(mark(x0)))))
MARK(add(y0, 0)) → ACTIVE(add(mark(y0), active(0)))
MARK(add(y0, if(x0, x1, x2))) → ACTIVE(add(mark(y0), active(if(mark(x0), x1, x2))))
MARK(add(0, y1)) → ACTIVE(add(active(0), mark(y1)))
MARK(add(y0, p(x0))) → ACTIVE(add(mark(y0), active(p(mark(x0)))))
MARK(prod(zero(x0), y1)) → ACTIVE(prod(active(zero(mark(x0))), mark(y1)))
ACTIVE(add(0, X)) → MARK(X)
MARK(add(y0, true)) → ACTIVE(add(mark(y0), active(true)))
MARK(add(true, y1)) → ACTIVE(add(active(true), mark(y1)))
ACTIVE(if(true, X, Y)) → MARK(X)
MARK(if(y0, x1, active(x2))) → ACTIVE(if(mark(y0), x1, x2))
MARK(add(y0, fact(x0))) → ACTIVE(add(mark(y0), active(fact(mark(x0)))))
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ Narrowing
MARK(prod(y0, prod(x0, x1))) → ACTIVE(prod(mark(y0), active(prod(mark(x0), mark(x1)))))
MARK(if(0, y1, y2)) → ACTIVE(if(active(0), y1, y2))
MARK(if(prod(x0, x1), y1, y2)) → ACTIVE(if(active(prod(mark(x0), mark(x1))), y1, y2))
MARK(prod(y0, zero(x0))) → ACTIVE(prod(mark(y0), active(zero(mark(x0)))))
MARK(prod(if(x0, x1, x2), y1)) → ACTIVE(prod(active(if(mark(x0), x1, x2)), mark(y1)))
MARK(add(false, y1)) → ACTIVE(add(active(false), mark(y1)))
MARK(add(y0, false)) → ACTIVE(add(mark(y0), active(false)))
MARK(add(y0, s(x0))) → ACTIVE(add(mark(y0), active(s(mark(x0)))))
MARK(if(y0, active(x1), x2)) → ACTIVE(if(mark(y0), x1, x2))
MARK(prod(add(x0, x1), y1)) → ACTIVE(prod(active(add(mark(x0), mark(x1))), mark(y1)))
ACTIVE(p(s(X))) → MARK(X)
MARK(if(y0, x1, mark(x2))) → ACTIVE(if(mark(y0), x1, x2))
MARK(prod(y0, s(x0))) → ACTIVE(prod(mark(y0), active(s(mark(x0)))))
MARK(prod(false, y1)) → ACTIVE(prod(active(false), mark(y1)))
MARK(prod(y0, false)) → ACTIVE(prod(mark(y0), active(false)))
MARK(if(X1, X2, X3)) → MARK(X1)
MARK(prod(y0, add(x0, x1))) → ACTIVE(prod(mark(y0), active(add(mark(x0), mark(x1)))))
MARK(p(X)) → MARK(X)
MARK(p(prod(x0, x1))) → ACTIVE(p(active(prod(mark(x0), mark(x1)))))
MARK(prod(prod(x0, x1), y1)) → ACTIVE(prod(active(prod(mark(x0), mark(x1))), mark(y1)))
MARK(add(y0, add(x0, x1))) → ACTIVE(add(mark(y0), active(add(mark(x0), mark(x1)))))
MARK(fact(X)) → ACTIVE(fact(mark(X)))
MARK(add(add(x0, x1), y1)) → ACTIVE(add(active(add(mark(x0), mark(x1))), mark(y1)))
MARK(add(fact(x0), y1)) → ACTIVE(add(active(fact(mark(x0))), mark(y1)))
MARK(add(zero(x0), y1)) → ACTIVE(add(active(zero(mark(x0))), mark(y1)))
MARK(p(false)) → ACTIVE(p(active(false)))
ACTIVE(prod(s(X), Y)) → MARK(add(Y, prod(X, Y)))
ACTIVE(fact(X)) → MARK(if(zero(X), s(0), prod(X, fact(p(X)))))
MARK(if(x0, x1, x2)) → ACTIVE(if(x0, x1, x2))
MARK(add(y0, x1)) → ACTIVE(add(mark(y0), x1))
MARK(add(y0, prod(x0, x1))) → ACTIVE(add(mark(y0), active(prod(mark(x0), mark(x1)))))
MARK(add(x0, y1)) → ACTIVE(add(x0, mark(y1)))
MARK(p(0)) → ACTIVE(p(active(0)))
MARK(zero(X)) → MARK(X)
MARK(if(fact(x0), y1, y2)) → ACTIVE(if(active(fact(mark(x0))), y1, y2))
MARK(if(y0, mark(x1), x2)) → ACTIVE(if(mark(y0), x1, x2))
MARK(if(if(x0, x1, x2), y1, y2)) → ACTIVE(if(active(if(mark(x0), x1, x2)), y1, y2))
MARK(prod(s(x0), y1)) → ACTIVE(prod(active(s(mark(x0))), mark(y1)))
MARK(prod(X1, X2)) → MARK(X1)
MARK(p(fact(x0))) → ACTIVE(p(active(fact(mark(x0)))))
MARK(if(zero(x0), y1, y2)) → ACTIVE(if(active(zero(mark(x0))), y1, y2))
MARK(prod(fact(x0), y1)) → ACTIVE(prod(active(fact(mark(x0))), mark(y1)))
MARK(prod(p(x0), y1)) → ACTIVE(prod(active(p(mark(x0))), mark(y1)))
MARK(s(X)) → MARK(X)
ACTIVE(if(false, X, Y)) → MARK(Y)
MARK(add(X1, X2)) → MARK(X2)
MARK(fact(X)) → MARK(X)
MARK(prod(y0, if(x0, x1, x2))) → ACTIVE(prod(mark(y0), active(if(mark(x0), x1, x2))))
MARK(prod(y0, x1)) → ACTIVE(prod(mark(y0), x1))
ACTIVE(add(s(X), Y)) → MARK(s(add(X, Y)))
MARK(prod(y0, fact(x0))) → ACTIVE(prod(mark(y0), active(fact(mark(x0)))))
MARK(if(true, y1, y2)) → ACTIVE(if(active(true), y1, y2))
MARK(add(X1, X2)) → MARK(X1)
MARK(if(add(x0, x1), y1, y2)) → ACTIVE(if(active(add(mark(x0), mark(x1))), y1, y2))
MARK(add(prod(x0, x1), y1)) → ACTIVE(add(active(prod(mark(x0), mark(x1))), mark(y1)))
MARK(prod(x0, y1)) → ACTIVE(prod(x0, mark(y1)))
MARK(prod(0, y1)) → ACTIVE(prod(active(0), mark(y1)))
MARK(prod(y0, 0)) → ACTIVE(prod(mark(y0), active(0)))
MARK(p(zero(x0))) → ACTIVE(p(active(zero(mark(x0)))))
MARK(p(s(x0))) → ACTIVE(p(active(s(mark(x0)))))
MARK(prod(X1, X2)) → MARK(X2)
MARK(if(p(x0), y1, y2)) → ACTIVE(if(active(p(mark(x0))), y1, y2))
MARK(add(y0, zero(x0))) → ACTIVE(add(mark(y0), active(zero(mark(x0)))))
MARK(prod(y0, true)) → ACTIVE(prod(mark(y0), active(true)))
MARK(prod(true, y1)) → ACTIVE(prod(active(true), mark(y1)))
MARK(p(if(x0, x1, x2))) → ACTIVE(p(active(if(mark(x0), x1, x2))))
MARK(if(s(x0), y1, y2)) → ACTIVE(if(active(s(mark(x0))), y1, y2))
MARK(p(add(x0, x1))) → ACTIVE(p(active(add(mark(x0), mark(x1)))))
MARK(add(if(x0, x1, x2), y1)) → ACTIVE(add(active(if(mark(x0), x1, x2)), mark(y1)))
MARK(add(s(x0), y1)) → ACTIVE(add(active(s(mark(x0))), mark(y1)))
MARK(p(x0)) → ACTIVE(p(x0))
MARK(p(p(x0))) → ACTIVE(p(active(p(mark(x0)))))
MARK(if(false, y1, y2)) → ACTIVE(if(active(false), y1, y2))
MARK(add(p(x0), y1)) → ACTIVE(add(active(p(mark(x0))), mark(y1)))
MARK(add(0, y1)) → ACTIVE(add(active(0), mark(y1)))
MARK(add(y0, if(x0, x1, x2))) → ACTIVE(add(mark(y0), active(if(mark(x0), x1, x2))))
MARK(add(y0, 0)) → ACTIVE(add(mark(y0), active(0)))
MARK(prod(y0, p(x0))) → ACTIVE(prod(mark(y0), active(p(mark(x0)))))
MARK(add(y0, p(x0))) → ACTIVE(add(mark(y0), active(p(mark(x0)))))
MARK(prod(zero(x0), y1)) → ACTIVE(prod(active(zero(mark(x0))), mark(y1)))
MARK(add(true, y1)) → ACTIVE(add(active(true), mark(y1)))
MARK(add(y0, true)) → ACTIVE(add(mark(y0), active(true)))
ACTIVE(add(0, X)) → MARK(X)
ACTIVE(if(true, X, Y)) → MARK(X)
MARK(add(y0, fact(x0))) → ACTIVE(add(mark(y0), active(fact(mark(x0)))))
MARK(if(y0, x1, active(x2))) → ACTIVE(if(mark(y0), x1, x2))
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
MARK(p(false)) → ACTIVE(p(false))
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
MARK(prod(y0, prod(x0, x1))) → ACTIVE(prod(mark(y0), active(prod(mark(x0), mark(x1)))))
MARK(if(0, y1, y2)) → ACTIVE(if(active(0), y1, y2))
MARK(prod(y0, zero(x0))) → ACTIVE(prod(mark(y0), active(zero(mark(x0)))))
MARK(if(prod(x0, x1), y1, y2)) → ACTIVE(if(active(prod(mark(x0), mark(x1))), y1, y2))
MARK(prod(if(x0, x1, x2), y1)) → ACTIVE(prod(active(if(mark(x0), x1, x2)), mark(y1)))
MARK(add(y0, false)) → ACTIVE(add(mark(y0), active(false)))
MARK(add(false, y1)) → ACTIVE(add(active(false), mark(y1)))
MARK(add(y0, s(x0))) → ACTIVE(add(mark(y0), active(s(mark(x0)))))
MARK(if(y0, active(x1), x2)) → ACTIVE(if(mark(y0), x1, x2))
MARK(if(y0, x1, mark(x2))) → ACTIVE(if(mark(y0), x1, x2))
ACTIVE(p(s(X))) → MARK(X)
MARK(prod(add(x0, x1), y1)) → ACTIVE(prod(active(add(mark(x0), mark(x1))), mark(y1)))
MARK(prod(y0, s(x0))) → ACTIVE(prod(mark(y0), active(s(mark(x0)))))
MARK(prod(y0, false)) → ACTIVE(prod(mark(y0), active(false)))
MARK(prod(false, y1)) → ACTIVE(prod(active(false), mark(y1)))
MARK(if(X1, X2, X3)) → MARK(X1)
MARK(prod(y0, add(x0, x1))) → ACTIVE(prod(mark(y0), active(add(mark(x0), mark(x1)))))
MARK(p(X)) → MARK(X)
MARK(p(prod(x0, x1))) → ACTIVE(p(active(prod(mark(x0), mark(x1)))))
MARK(prod(prod(x0, x1), y1)) → ACTIVE(prod(active(prod(mark(x0), mark(x1))), mark(y1)))
MARK(fact(X)) → ACTIVE(fact(mark(X)))
MARK(add(y0, add(x0, x1))) → ACTIVE(add(mark(y0), active(add(mark(x0), mark(x1)))))
MARK(add(add(x0, x1), y1)) → ACTIVE(add(active(add(mark(x0), mark(x1))), mark(y1)))
MARK(add(fact(x0), y1)) → ACTIVE(add(active(fact(mark(x0))), mark(y1)))
MARK(add(zero(x0), y1)) → ACTIVE(add(active(zero(mark(x0))), mark(y1)))
ACTIVE(prod(s(X), Y)) → MARK(add(Y, prod(X, Y)))
ACTIVE(fact(X)) → MARK(if(zero(X), s(0), prod(X, fact(p(X)))))
MARK(if(x0, x1, x2)) → ACTIVE(if(x0, x1, x2))
MARK(add(y0, prod(x0, x1))) → ACTIVE(add(mark(y0), active(prod(mark(x0), mark(x1)))))
MARK(add(y0, x1)) → ACTIVE(add(mark(y0), x1))
MARK(add(x0, y1)) → ACTIVE(add(x0, mark(y1)))
MARK(p(0)) → ACTIVE(p(active(0)))
MARK(zero(X)) → MARK(X)
MARK(if(y0, mark(x1), x2)) → ACTIVE(if(mark(y0), x1, x2))
MARK(if(fact(x0), y1, y2)) → ACTIVE(if(active(fact(mark(x0))), y1, y2))
MARK(if(if(x0, x1, x2), y1, y2)) → ACTIVE(if(active(if(mark(x0), x1, x2)), y1, y2))
MARK(prod(s(x0), y1)) → ACTIVE(prod(active(s(mark(x0))), mark(y1)))
MARK(prod(p(x0), y1)) → ACTIVE(prod(active(p(mark(x0))), mark(y1)))
MARK(prod(fact(x0), y1)) → ACTIVE(prod(active(fact(mark(x0))), mark(y1)))
MARK(if(zero(x0), y1, y2)) → ACTIVE(if(active(zero(mark(x0))), y1, y2))
MARK(p(fact(x0))) → ACTIVE(p(active(fact(mark(x0)))))
MARK(prod(X1, X2)) → MARK(X1)
MARK(s(X)) → MARK(X)
MARK(add(X1, X2)) → MARK(X2)
ACTIVE(if(false, X, Y)) → MARK(Y)
MARK(fact(X)) → MARK(X)
MARK(prod(y0, if(x0, x1, x2))) → ACTIVE(prod(mark(y0), active(if(mark(x0), x1, x2))))
MARK(prod(y0, x1)) → ACTIVE(prod(mark(y0), x1))
ACTIVE(add(s(X), Y)) → MARK(s(add(X, Y)))
MARK(if(true, y1, y2)) → ACTIVE(if(active(true), y1, y2))
MARK(prod(y0, fact(x0))) → ACTIVE(prod(mark(y0), active(fact(mark(x0)))))
MARK(add(X1, X2)) → MARK(X1)
MARK(if(add(x0, x1), y1, y2)) → ACTIVE(if(active(add(mark(x0), mark(x1))), y1, y2))
MARK(add(prod(x0, x1), y1)) → ACTIVE(add(active(prod(mark(x0), mark(x1))), mark(y1)))
MARK(prod(x0, y1)) → ACTIVE(prod(x0, mark(y1)))
MARK(prod(y0, 0)) → ACTIVE(prod(mark(y0), active(0)))
MARK(prod(0, y1)) → ACTIVE(prod(active(0), mark(y1)))
MARK(p(false)) → ACTIVE(p(false))
MARK(p(zero(x0))) → ACTIVE(p(active(zero(mark(x0)))))
MARK(p(s(x0))) → ACTIVE(p(active(s(mark(x0)))))
MARK(if(p(x0), y1, y2)) → ACTIVE(if(active(p(mark(x0))), y1, y2))
MARK(prod(X1, X2)) → MARK(X2)
MARK(add(y0, zero(x0))) → ACTIVE(add(mark(y0), active(zero(mark(x0)))))
MARK(prod(true, y1)) → ACTIVE(prod(active(true), mark(y1)))
MARK(prod(y0, true)) → ACTIVE(prod(mark(y0), active(true)))
MARK(p(if(x0, x1, x2))) → ACTIVE(p(active(if(mark(x0), x1, x2))))
MARK(if(s(x0), y1, y2)) → ACTIVE(if(active(s(mark(x0))), y1, y2))
MARK(p(add(x0, x1))) → ACTIVE(p(active(add(mark(x0), mark(x1)))))
MARK(add(if(x0, x1, x2), y1)) → ACTIVE(add(active(if(mark(x0), x1, x2)), mark(y1)))
MARK(add(s(x0), y1)) → ACTIVE(add(active(s(mark(x0))), mark(y1)))
MARK(p(x0)) → ACTIVE(p(x0))
MARK(if(false, y1, y2)) → ACTIVE(if(active(false), y1, y2))
MARK(p(p(x0))) → ACTIVE(p(active(p(mark(x0)))))
MARK(add(p(x0), y1)) → ACTIVE(add(active(p(mark(x0))), mark(y1)))
MARK(prod(y0, p(x0))) → ACTIVE(prod(mark(y0), active(p(mark(x0)))))
MARK(add(y0, 0)) → ACTIVE(add(mark(y0), active(0)))
MARK(add(y0, if(x0, x1, x2))) → ACTIVE(add(mark(y0), active(if(mark(x0), x1, x2))))
MARK(add(0, y1)) → ACTIVE(add(active(0), mark(y1)))
MARK(add(y0, p(x0))) → ACTIVE(add(mark(y0), active(p(mark(x0)))))
MARK(prod(zero(x0), y1)) → ACTIVE(prod(active(zero(mark(x0))), mark(y1)))
ACTIVE(add(0, X)) → MARK(X)
MARK(add(y0, true)) → ACTIVE(add(mark(y0), active(true)))
MARK(add(true, y1)) → ACTIVE(add(active(true), mark(y1)))
ACTIVE(if(true, X, Y)) → MARK(X)
MARK(if(y0, x1, active(x2))) → ACTIVE(if(mark(y0), x1, x2))
MARK(add(y0, fact(x0))) → ACTIVE(add(mark(y0), active(fact(mark(x0)))))
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ Narrowing
MARK(prod(y0, prod(x0, x1))) → ACTIVE(prod(mark(y0), active(prod(mark(x0), mark(x1)))))
MARK(if(0, y1, y2)) → ACTIVE(if(active(0), y1, y2))
MARK(if(prod(x0, x1), y1, y2)) → ACTIVE(if(active(prod(mark(x0), mark(x1))), y1, y2))
MARK(prod(y0, zero(x0))) → ACTIVE(prod(mark(y0), active(zero(mark(x0)))))
MARK(prod(if(x0, x1, x2), y1)) → ACTIVE(prod(active(if(mark(x0), x1, x2)), mark(y1)))
MARK(add(false, y1)) → ACTIVE(add(active(false), mark(y1)))
MARK(add(y0, false)) → ACTIVE(add(mark(y0), active(false)))
MARK(add(y0, s(x0))) → ACTIVE(add(mark(y0), active(s(mark(x0)))))
MARK(if(y0, active(x1), x2)) → ACTIVE(if(mark(y0), x1, x2))
MARK(prod(add(x0, x1), y1)) → ACTIVE(prod(active(add(mark(x0), mark(x1))), mark(y1)))
ACTIVE(p(s(X))) → MARK(X)
MARK(if(y0, x1, mark(x2))) → ACTIVE(if(mark(y0), x1, x2))
MARK(prod(y0, s(x0))) → ACTIVE(prod(mark(y0), active(s(mark(x0)))))
MARK(prod(false, y1)) → ACTIVE(prod(active(false), mark(y1)))
MARK(prod(y0, false)) → ACTIVE(prod(mark(y0), active(false)))
MARK(if(X1, X2, X3)) → MARK(X1)
MARK(prod(y0, add(x0, x1))) → ACTIVE(prod(mark(y0), active(add(mark(x0), mark(x1)))))
MARK(p(X)) → MARK(X)
MARK(p(prod(x0, x1))) → ACTIVE(p(active(prod(mark(x0), mark(x1)))))
MARK(prod(prod(x0, x1), y1)) → ACTIVE(prod(active(prod(mark(x0), mark(x1))), mark(y1)))
MARK(add(y0, add(x0, x1))) → ACTIVE(add(mark(y0), active(add(mark(x0), mark(x1)))))
MARK(fact(X)) → ACTIVE(fact(mark(X)))
MARK(add(add(x0, x1), y1)) → ACTIVE(add(active(add(mark(x0), mark(x1))), mark(y1)))
MARK(add(fact(x0), y1)) → ACTIVE(add(active(fact(mark(x0))), mark(y1)))
MARK(add(zero(x0), y1)) → ACTIVE(add(active(zero(mark(x0))), mark(y1)))
ACTIVE(prod(s(X), Y)) → MARK(add(Y, prod(X, Y)))
ACTIVE(fact(X)) → MARK(if(zero(X), s(0), prod(X, fact(p(X)))))
MARK(if(x0, x1, x2)) → ACTIVE(if(x0, x1, x2))
MARK(add(y0, x1)) → ACTIVE(add(mark(y0), x1))
MARK(add(y0, prod(x0, x1))) → ACTIVE(add(mark(y0), active(prod(mark(x0), mark(x1)))))
MARK(add(x0, y1)) → ACTIVE(add(x0, mark(y1)))
MARK(p(0)) → ACTIVE(p(active(0)))
MARK(zero(X)) → MARK(X)
MARK(if(fact(x0), y1, y2)) → ACTIVE(if(active(fact(mark(x0))), y1, y2))
MARK(if(y0, mark(x1), x2)) → ACTIVE(if(mark(y0), x1, x2))
MARK(if(if(x0, x1, x2), y1, y2)) → ACTIVE(if(active(if(mark(x0), x1, x2)), y1, y2))
MARK(prod(s(x0), y1)) → ACTIVE(prod(active(s(mark(x0))), mark(y1)))
MARK(prod(X1, X2)) → MARK(X1)
MARK(p(fact(x0))) → ACTIVE(p(active(fact(mark(x0)))))
MARK(if(zero(x0), y1, y2)) → ACTIVE(if(active(zero(mark(x0))), y1, y2))
MARK(prod(fact(x0), y1)) → ACTIVE(prod(active(fact(mark(x0))), mark(y1)))
MARK(prod(p(x0), y1)) → ACTIVE(prod(active(p(mark(x0))), mark(y1)))
MARK(s(X)) → MARK(X)
ACTIVE(if(false, X, Y)) → MARK(Y)
MARK(add(X1, X2)) → MARK(X2)
MARK(fact(X)) → MARK(X)
MARK(prod(y0, if(x0, x1, x2))) → ACTIVE(prod(mark(y0), active(if(mark(x0), x1, x2))))
MARK(prod(y0, x1)) → ACTIVE(prod(mark(y0), x1))
ACTIVE(add(s(X), Y)) → MARK(s(add(X, Y)))
MARK(prod(y0, fact(x0))) → ACTIVE(prod(mark(y0), active(fact(mark(x0)))))
MARK(if(true, y1, y2)) → ACTIVE(if(active(true), y1, y2))
MARK(add(X1, X2)) → MARK(X1)
MARK(if(add(x0, x1), y1, y2)) → ACTIVE(if(active(add(mark(x0), mark(x1))), y1, y2))
MARK(add(prod(x0, x1), y1)) → ACTIVE(add(active(prod(mark(x0), mark(x1))), mark(y1)))
MARK(prod(x0, y1)) → ACTIVE(prod(x0, mark(y1)))
MARK(prod(0, y1)) → ACTIVE(prod(active(0), mark(y1)))
MARK(prod(y0, 0)) → ACTIVE(prod(mark(y0), active(0)))
MARK(p(zero(x0))) → ACTIVE(p(active(zero(mark(x0)))))
MARK(p(s(x0))) → ACTIVE(p(active(s(mark(x0)))))
MARK(prod(X1, X2)) → MARK(X2)
MARK(if(p(x0), y1, y2)) → ACTIVE(if(active(p(mark(x0))), y1, y2))
MARK(add(y0, zero(x0))) → ACTIVE(add(mark(y0), active(zero(mark(x0)))))
MARK(prod(y0, true)) → ACTIVE(prod(mark(y0), active(true)))
MARK(prod(true, y1)) → ACTIVE(prod(active(true), mark(y1)))
MARK(p(if(x0, x1, x2))) → ACTIVE(p(active(if(mark(x0), x1, x2))))
MARK(if(s(x0), y1, y2)) → ACTIVE(if(active(s(mark(x0))), y1, y2))
MARK(p(add(x0, x1))) → ACTIVE(p(active(add(mark(x0), mark(x1)))))
MARK(add(if(x0, x1, x2), y1)) → ACTIVE(add(active(if(mark(x0), x1, x2)), mark(y1)))
MARK(add(s(x0), y1)) → ACTIVE(add(active(s(mark(x0))), mark(y1)))
MARK(p(x0)) → ACTIVE(p(x0))
MARK(p(p(x0))) → ACTIVE(p(active(p(mark(x0)))))
MARK(if(false, y1, y2)) → ACTIVE(if(active(false), y1, y2))
MARK(add(p(x0), y1)) → ACTIVE(add(active(p(mark(x0))), mark(y1)))
MARK(add(0, y1)) → ACTIVE(add(active(0), mark(y1)))
MARK(add(y0, if(x0, x1, x2))) → ACTIVE(add(mark(y0), active(if(mark(x0), x1, x2))))
MARK(add(y0, 0)) → ACTIVE(add(mark(y0), active(0)))
MARK(prod(y0, p(x0))) → ACTIVE(prod(mark(y0), active(p(mark(x0)))))
MARK(add(y0, p(x0))) → ACTIVE(add(mark(y0), active(p(mark(x0)))))
MARK(prod(zero(x0), y1)) → ACTIVE(prod(active(zero(mark(x0))), mark(y1)))
MARK(add(true, y1)) → ACTIVE(add(active(true), mark(y1)))
MARK(add(y0, true)) → ACTIVE(add(mark(y0), active(true)))
ACTIVE(add(0, X)) → MARK(X)
ACTIVE(if(true, X, Y)) → MARK(X)
MARK(add(y0, fact(x0))) → ACTIVE(add(mark(y0), active(fact(mark(x0)))))
MARK(if(y0, x1, active(x2))) → ACTIVE(if(mark(y0), x1, x2))
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
MARK(p(0)) → ACTIVE(p(0))
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
MARK(prod(y0, prod(x0, x1))) → ACTIVE(prod(mark(y0), active(prod(mark(x0), mark(x1)))))
MARK(if(0, y1, y2)) → ACTIVE(if(active(0), y1, y2))
MARK(prod(y0, zero(x0))) → ACTIVE(prod(mark(y0), active(zero(mark(x0)))))
MARK(if(prod(x0, x1), y1, y2)) → ACTIVE(if(active(prod(mark(x0), mark(x1))), y1, y2))
MARK(p(0)) → ACTIVE(p(0))
MARK(prod(if(x0, x1, x2), y1)) → ACTIVE(prod(active(if(mark(x0), x1, x2)), mark(y1)))
MARK(add(y0, false)) → ACTIVE(add(mark(y0), active(false)))
MARK(add(false, y1)) → ACTIVE(add(active(false), mark(y1)))
MARK(add(y0, s(x0))) → ACTIVE(add(mark(y0), active(s(mark(x0)))))
MARK(if(y0, active(x1), x2)) → ACTIVE(if(mark(y0), x1, x2))
MARK(if(y0, x1, mark(x2))) → ACTIVE(if(mark(y0), x1, x2))
ACTIVE(p(s(X))) → MARK(X)
MARK(prod(add(x0, x1), y1)) → ACTIVE(prod(active(add(mark(x0), mark(x1))), mark(y1)))
MARK(prod(y0, s(x0))) → ACTIVE(prod(mark(y0), active(s(mark(x0)))))
MARK(prod(y0, false)) → ACTIVE(prod(mark(y0), active(false)))
MARK(prod(false, y1)) → ACTIVE(prod(active(false), mark(y1)))
MARK(if(X1, X2, X3)) → MARK(X1)
MARK(prod(y0, add(x0, x1))) → ACTIVE(prod(mark(y0), active(add(mark(x0), mark(x1)))))
MARK(p(X)) → MARK(X)
MARK(p(prod(x0, x1))) → ACTIVE(p(active(prod(mark(x0), mark(x1)))))
MARK(prod(prod(x0, x1), y1)) → ACTIVE(prod(active(prod(mark(x0), mark(x1))), mark(y1)))
MARK(fact(X)) → ACTIVE(fact(mark(X)))
MARK(add(y0, add(x0, x1))) → ACTIVE(add(mark(y0), active(add(mark(x0), mark(x1)))))
MARK(add(add(x0, x1), y1)) → ACTIVE(add(active(add(mark(x0), mark(x1))), mark(y1)))
MARK(add(fact(x0), y1)) → ACTIVE(add(active(fact(mark(x0))), mark(y1)))
MARK(add(zero(x0), y1)) → ACTIVE(add(active(zero(mark(x0))), mark(y1)))
ACTIVE(prod(s(X), Y)) → MARK(add(Y, prod(X, Y)))
ACTIVE(fact(X)) → MARK(if(zero(X), s(0), prod(X, fact(p(X)))))
MARK(if(x0, x1, x2)) → ACTIVE(if(x0, x1, x2))
MARK(add(y0, prod(x0, x1))) → ACTIVE(add(mark(y0), active(prod(mark(x0), mark(x1)))))
MARK(add(y0, x1)) → ACTIVE(add(mark(y0), x1))
MARK(add(x0, y1)) → ACTIVE(add(x0, mark(y1)))
MARK(zero(X)) → MARK(X)
MARK(if(y0, mark(x1), x2)) → ACTIVE(if(mark(y0), x1, x2))
MARK(if(fact(x0), y1, y2)) → ACTIVE(if(active(fact(mark(x0))), y1, y2))
MARK(if(if(x0, x1, x2), y1, y2)) → ACTIVE(if(active(if(mark(x0), x1, x2)), y1, y2))
MARK(prod(s(x0), y1)) → ACTIVE(prod(active(s(mark(x0))), mark(y1)))
MARK(prod(p(x0), y1)) → ACTIVE(prod(active(p(mark(x0))), mark(y1)))
MARK(prod(fact(x0), y1)) → ACTIVE(prod(active(fact(mark(x0))), mark(y1)))
MARK(if(zero(x0), y1, y2)) → ACTIVE(if(active(zero(mark(x0))), y1, y2))
MARK(p(fact(x0))) → ACTIVE(p(active(fact(mark(x0)))))
MARK(prod(X1, X2)) → MARK(X1)
MARK(s(X)) → MARK(X)
MARK(add(X1, X2)) → MARK(X2)
ACTIVE(if(false, X, Y)) → MARK(Y)
MARK(fact(X)) → MARK(X)
MARK(prod(y0, if(x0, x1, x2))) → ACTIVE(prod(mark(y0), active(if(mark(x0), x1, x2))))
MARK(prod(y0, x1)) → ACTIVE(prod(mark(y0), x1))
ACTIVE(add(s(X), Y)) → MARK(s(add(X, Y)))
MARK(if(true, y1, y2)) → ACTIVE(if(active(true), y1, y2))
MARK(prod(y0, fact(x0))) → ACTIVE(prod(mark(y0), active(fact(mark(x0)))))
MARK(add(X1, X2)) → MARK(X1)
MARK(if(add(x0, x1), y1, y2)) → ACTIVE(if(active(add(mark(x0), mark(x1))), y1, y2))
MARK(add(prod(x0, x1), y1)) → ACTIVE(add(active(prod(mark(x0), mark(x1))), mark(y1)))
MARK(prod(x0, y1)) → ACTIVE(prod(x0, mark(y1)))
MARK(prod(y0, 0)) → ACTIVE(prod(mark(y0), active(0)))
MARK(prod(0, y1)) → ACTIVE(prod(active(0), mark(y1)))
MARK(p(zero(x0))) → ACTIVE(p(active(zero(mark(x0)))))
MARK(p(s(x0))) → ACTIVE(p(active(s(mark(x0)))))
MARK(if(p(x0), y1, y2)) → ACTIVE(if(active(p(mark(x0))), y1, y2))
MARK(prod(X1, X2)) → MARK(X2)
MARK(add(y0, zero(x0))) → ACTIVE(add(mark(y0), active(zero(mark(x0)))))
MARK(prod(true, y1)) → ACTIVE(prod(active(true), mark(y1)))
MARK(prod(y0, true)) → ACTIVE(prod(mark(y0), active(true)))
MARK(p(if(x0, x1, x2))) → ACTIVE(p(active(if(mark(x0), x1, x2))))
MARK(if(s(x0), y1, y2)) → ACTIVE(if(active(s(mark(x0))), y1, y2))
MARK(p(add(x0, x1))) → ACTIVE(p(active(add(mark(x0), mark(x1)))))
MARK(add(if(x0, x1, x2), y1)) → ACTIVE(add(active(if(mark(x0), x1, x2)), mark(y1)))
MARK(add(s(x0), y1)) → ACTIVE(add(active(s(mark(x0))), mark(y1)))
MARK(p(x0)) → ACTIVE(p(x0))
MARK(if(false, y1, y2)) → ACTIVE(if(active(false), y1, y2))
MARK(p(p(x0))) → ACTIVE(p(active(p(mark(x0)))))
MARK(add(p(x0), y1)) → ACTIVE(add(active(p(mark(x0))), mark(y1)))
MARK(prod(y0, p(x0))) → ACTIVE(prod(mark(y0), active(p(mark(x0)))))
MARK(add(y0, 0)) → ACTIVE(add(mark(y0), active(0)))
MARK(add(y0, if(x0, x1, x2))) → ACTIVE(add(mark(y0), active(if(mark(x0), x1, x2))))
MARK(add(0, y1)) → ACTIVE(add(active(0), mark(y1)))
MARK(add(y0, p(x0))) → ACTIVE(add(mark(y0), active(p(mark(x0)))))
MARK(prod(zero(x0), y1)) → ACTIVE(prod(active(zero(mark(x0))), mark(y1)))
ACTIVE(add(0, X)) → MARK(X)
MARK(add(y0, true)) → ACTIVE(add(mark(y0), active(true)))
MARK(add(true, y1)) → ACTIVE(add(active(true), mark(y1)))
ACTIVE(if(true, X, Y)) → MARK(X)
MARK(if(y0, x1, active(x2))) → ACTIVE(if(mark(y0), x1, x2))
MARK(add(y0, fact(x0))) → ACTIVE(add(mark(y0), active(fact(mark(x0)))))
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
↳ QDP
MARK(prod(y0, prod(x0, x1))) → ACTIVE(prod(mark(y0), active(prod(mark(x0), mark(x1)))))
MARK(if(0, y1, y2)) → ACTIVE(if(active(0), y1, y2))
MARK(if(prod(x0, x1), y1, y2)) → ACTIVE(if(active(prod(mark(x0), mark(x1))), y1, y2))
MARK(prod(y0, zero(x0))) → ACTIVE(prod(mark(y0), active(zero(mark(x0)))))
MARK(prod(if(x0, x1, x2), y1)) → ACTIVE(prod(active(if(mark(x0), x1, x2)), mark(y1)))
MARK(add(false, y1)) → ACTIVE(add(active(false), mark(y1)))
MARK(add(y0, false)) → ACTIVE(add(mark(y0), active(false)))
MARK(add(y0, s(x0))) → ACTIVE(add(mark(y0), active(s(mark(x0)))))
MARK(if(y0, active(x1), x2)) → ACTIVE(if(mark(y0), x1, x2))
MARK(prod(add(x0, x1), y1)) → ACTIVE(prod(active(add(mark(x0), mark(x1))), mark(y1)))
ACTIVE(p(s(X))) → MARK(X)
MARK(if(y0, x1, mark(x2))) → ACTIVE(if(mark(y0), x1, x2))
MARK(prod(y0, s(x0))) → ACTIVE(prod(mark(y0), active(s(mark(x0)))))
MARK(prod(false, y1)) → ACTIVE(prod(active(false), mark(y1)))
MARK(prod(y0, false)) → ACTIVE(prod(mark(y0), active(false)))
MARK(if(X1, X2, X3)) → MARK(X1)
MARK(prod(y0, add(x0, x1))) → ACTIVE(prod(mark(y0), active(add(mark(x0), mark(x1)))))
MARK(p(X)) → MARK(X)
MARK(p(prod(x0, x1))) → ACTIVE(p(active(prod(mark(x0), mark(x1)))))
MARK(prod(prod(x0, x1), y1)) → ACTIVE(prod(active(prod(mark(x0), mark(x1))), mark(y1)))
MARK(add(y0, add(x0, x1))) → ACTIVE(add(mark(y0), active(add(mark(x0), mark(x1)))))
MARK(fact(X)) → ACTIVE(fact(mark(X)))
MARK(add(add(x0, x1), y1)) → ACTIVE(add(active(add(mark(x0), mark(x1))), mark(y1)))
MARK(add(fact(x0), y1)) → ACTIVE(add(active(fact(mark(x0))), mark(y1)))
MARK(add(zero(x0), y1)) → ACTIVE(add(active(zero(mark(x0))), mark(y1)))
ACTIVE(prod(s(X), Y)) → MARK(add(Y, prod(X, Y)))
ACTIVE(fact(X)) → MARK(if(zero(X), s(0), prod(X, fact(p(X)))))
MARK(if(x0, x1, x2)) → ACTIVE(if(x0, x1, x2))
MARK(add(y0, x1)) → ACTIVE(add(mark(y0), x1))
MARK(add(y0, prod(x0, x1))) → ACTIVE(add(mark(y0), active(prod(mark(x0), mark(x1)))))
MARK(add(x0, y1)) → ACTIVE(add(x0, mark(y1)))
MARK(zero(X)) → MARK(X)
MARK(if(fact(x0), y1, y2)) → ACTIVE(if(active(fact(mark(x0))), y1, y2))
MARK(if(y0, mark(x1), x2)) → ACTIVE(if(mark(y0), x1, x2))
MARK(if(if(x0, x1, x2), y1, y2)) → ACTIVE(if(active(if(mark(x0), x1, x2)), y1, y2))
MARK(prod(s(x0), y1)) → ACTIVE(prod(active(s(mark(x0))), mark(y1)))
MARK(prod(X1, X2)) → MARK(X1)
MARK(p(fact(x0))) → ACTIVE(p(active(fact(mark(x0)))))
MARK(if(zero(x0), y1, y2)) → ACTIVE(if(active(zero(mark(x0))), y1, y2))
MARK(prod(fact(x0), y1)) → ACTIVE(prod(active(fact(mark(x0))), mark(y1)))
MARK(prod(p(x0), y1)) → ACTIVE(prod(active(p(mark(x0))), mark(y1)))
MARK(s(X)) → MARK(X)
ACTIVE(if(false, X, Y)) → MARK(Y)
MARK(add(X1, X2)) → MARK(X2)
MARK(fact(X)) → MARK(X)
MARK(prod(y0, if(x0, x1, x2))) → ACTIVE(prod(mark(y0), active(if(mark(x0), x1, x2))))
MARK(prod(y0, x1)) → ACTIVE(prod(mark(y0), x1))
ACTIVE(add(s(X), Y)) → MARK(s(add(X, Y)))
MARK(prod(y0, fact(x0))) → ACTIVE(prod(mark(y0), active(fact(mark(x0)))))
MARK(if(true, y1, y2)) → ACTIVE(if(active(true), y1, y2))
MARK(add(X1, X2)) → MARK(X1)
MARK(if(add(x0, x1), y1, y2)) → ACTIVE(if(active(add(mark(x0), mark(x1))), y1, y2))
MARK(add(prod(x0, x1), y1)) → ACTIVE(add(active(prod(mark(x0), mark(x1))), mark(y1)))
MARK(prod(x0, y1)) → ACTIVE(prod(x0, mark(y1)))
MARK(prod(0, y1)) → ACTIVE(prod(active(0), mark(y1)))
MARK(prod(y0, 0)) → ACTIVE(prod(mark(y0), active(0)))
MARK(p(zero(x0))) → ACTIVE(p(active(zero(mark(x0)))))
MARK(p(s(x0))) → ACTIVE(p(active(s(mark(x0)))))
MARK(prod(X1, X2)) → MARK(X2)
MARK(if(p(x0), y1, y2)) → ACTIVE(if(active(p(mark(x0))), y1, y2))
MARK(add(y0, zero(x0))) → ACTIVE(add(mark(y0), active(zero(mark(x0)))))
MARK(prod(y0, true)) → ACTIVE(prod(mark(y0), active(true)))
MARK(prod(true, y1)) → ACTIVE(prod(active(true), mark(y1)))
MARK(p(if(x0, x1, x2))) → ACTIVE(p(active(if(mark(x0), x1, x2))))
MARK(if(s(x0), y1, y2)) → ACTIVE(if(active(s(mark(x0))), y1, y2))
MARK(p(add(x0, x1))) → ACTIVE(p(active(add(mark(x0), mark(x1)))))
MARK(add(if(x0, x1, x2), y1)) → ACTIVE(add(active(if(mark(x0), x1, x2)), mark(y1)))
MARK(add(s(x0), y1)) → ACTIVE(add(active(s(mark(x0))), mark(y1)))
MARK(p(x0)) → ACTIVE(p(x0))
MARK(p(p(x0))) → ACTIVE(p(active(p(mark(x0)))))
MARK(if(false, y1, y2)) → ACTIVE(if(active(false), y1, y2))
MARK(add(p(x0), y1)) → ACTIVE(add(active(p(mark(x0))), mark(y1)))
MARK(add(0, y1)) → ACTIVE(add(active(0), mark(y1)))
MARK(add(y0, if(x0, x1, x2))) → ACTIVE(add(mark(y0), active(if(mark(x0), x1, x2))))
MARK(add(y0, 0)) → ACTIVE(add(mark(y0), active(0)))
MARK(prod(y0, p(x0))) → ACTIVE(prod(mark(y0), active(p(mark(x0)))))
MARK(add(y0, p(x0))) → ACTIVE(add(mark(y0), active(p(mark(x0)))))
MARK(prod(zero(x0), y1)) → ACTIVE(prod(active(zero(mark(x0))), mark(y1)))
MARK(add(true, y1)) → ACTIVE(add(active(true), mark(y1)))
MARK(add(y0, true)) → ACTIVE(add(mark(y0), active(true)))
ACTIVE(add(0, X)) → MARK(X)
ACTIVE(if(true, X, Y)) → MARK(X)
MARK(add(y0, fact(x0))) → ACTIVE(add(mark(y0), active(fact(mark(x0)))))
MARK(if(y0, x1, active(x2))) → ACTIVE(if(mark(y0), x1, x2))
active(fact(X)) → mark(if(zero(X), s(0), prod(X, fact(p(X)))))
active(add(0, X)) → mark(X)
active(add(s(X), Y)) → mark(s(add(X, Y)))
active(prod(0, X)) → mark(0)
active(prod(s(X), Y)) → mark(add(Y, prod(X, Y)))
active(if(true, X, Y)) → mark(X)
active(if(false, X, Y)) → mark(Y)
active(zero(0)) → mark(true)
active(zero(s(X))) → mark(false)
active(p(s(X))) → mark(X)
mark(fact(X)) → active(fact(mark(X)))
mark(if(X1, X2, X3)) → active(if(mark(X1), X2, X3))
mark(zero(X)) → active(zero(mark(X)))
mark(s(X)) → active(s(mark(X)))
mark(0) → active(0)
mark(prod(X1, X2)) → active(prod(mark(X1), mark(X2)))
mark(p(X)) → active(p(mark(X)))
mark(add(X1, X2)) → active(add(mark(X1), mark(X2)))
mark(true) → active(true)
mark(false) → active(false)
fact(mark(X)) → fact(X)
fact(active(X)) → fact(X)
if(mark(X1), X2, X3) → if(X1, X2, X3)
if(X1, mark(X2), X3) → if(X1, X2, X3)
if(X1, X2, mark(X3)) → if(X1, X2, X3)
if(active(X1), X2, X3) → if(X1, X2, X3)
if(X1, active(X2), X3) → if(X1, X2, X3)
if(X1, X2, active(X3)) → if(X1, X2, X3)
zero(mark(X)) → zero(X)
zero(active(X)) → zero(X)
s(mark(X)) → s(X)
s(active(X)) → s(X)
prod(mark(X1), X2) → prod(X1, X2)
prod(X1, mark(X2)) → prod(X1, X2)
prod(active(X1), X2) → prod(X1, X2)
prod(X1, active(X2)) → prod(X1, X2)
p(mark(X)) → p(X)
p(active(X)) → p(X)
add(mark(X1), X2) → add(X1, X2)
add(X1, mark(X2)) → add(X1, X2)
add(active(X1), X2) → add(X1, X2)
add(X1, active(X2)) → add(X1, X2)